﻿#include "CmdPolarCoordinateGraphRemoveAllTracer.h"
#include <QFile>
#include <QDebug>
#include "BaseModule/IBaseSignal.h"
#include "PostCommandPy.h"

namespace PostCommand
{
    CmdPolarCoordinateGraphRemoveAllTracer::CmdPolarCoordinateGraphRemoveAllTracer()
        : CommandBase()
    {
        this->initCmdName();
    }
    CmdPolarCoordinateGraphRemoveAllTracer::~CmdPolarCoordinateGraphRemoveAllTracer()
    {
    }

    bool CmdPolarCoordinateGraphRemoveAllTracer::execute()
    {
        // bool _success = false;
        emit IBaseSignalInstance->signal_polarCoordinateGraphRemoveAllTracer(m_mainWindowId, m_infoidList);
        return true;
    }

    void CmdPolarCoordinateGraphRemoveAllTracer::undo()
    {
    }

    void CmdPolarCoordinateGraphRemoveAllTracer::redo()
    {
        // execute();
    }

    void CmdPolarCoordinateGraphRemoveAllTracer::setPolarCoordinateGraphRemoveAllTracer(int mainWindowId, QList<int> infoidList)
    {
        m_mainWindowId = mainWindowId;
        m_infoidList = infoidList;
    }

} // namespace PostCommand
